package com.snowRemovingUser.service.impl;

import com.snowRemovingUser.domain.TSeason;
import com.snowRemovingUser.mapper.TSeasonMapper;
import com.snowRemovingUser.service.ITSeasonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 季节Service业务层处理
 * 
 * @author lg
 * @date 2024-04-08
 */
@Service
public class TSeasonServiceImpl implements ITSeasonService 
{
    @Autowired
    private TSeasonMapper tSeasonMapper;

    /**
     * 查询季节
     * 
     * @param id 季节主键
     * @return 季节
     */
    @Override
    public TSeason selectTSeasonById(Long id)
    {
        return tSeasonMapper.selectTSeasonById(id);
    }

    /**
     * 查询季节列表
     * 
     * @param tSeason 季节
     * @return 季节
     */
    @Override
    public List<TSeason> selectTSeasonList(TSeason tSeason)
    {
        return tSeasonMapper.selectTSeasonList(tSeason);
    }

    /**
     * 新增季节
     * 
     * @param tSeason 季节
     * @return 结果
     */
    @Override
    public int insertTSeason(TSeason tSeason)
    {
        return tSeasonMapper.insertTSeason(tSeason);
    }

    /**
     * 修改季节
     * 
     * @param tSeason 季节
     * @return 结果
     */
    @Override
    public int updateTSeason(TSeason tSeason)
    {
        return tSeasonMapper.updateTSeason(tSeason);
    }

    /**
     * 批量删除季节
     * 
     * @param ids 需要删除的季节主键
     * @return 结果
     */
    @Override
    public int deleteTSeasonByIds(Long[] ids)
    {
        return tSeasonMapper.deleteTSeasonByIds(ids);
    }

    /**
     * 删除季节信息
     * 
     * @param id 季节主键
     * @return 结果
     */
    @Override
    public int deleteTSeasonById(Long id)
    {
        return tSeasonMapper.deleteTSeasonById(id);
    }
}
